﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/ModlingMasterPage.master"
    AutoEventWireup="true" CodeBehind="ManageRadiologyImageView.aspx.cs" Inherits="RMS.ManageRadiologyImageView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PagContent" runat="server">
    <cc:Notification ID="Notification" DefaultText="File Uploaded Sussefuly" runat="server" />
    <table class="Details">
        <tr>
            <td class="label">
                <asp:Label ID="Label1" runat="server" Text="Request ID"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TXTRequestid" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TXTRequestid"
                    ErrorMessage="Please enter the request id" ValidationGroup="AddImage">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label2" runat="server" Text="Patient Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TXTPatientname" class="autocomplete ui-widget" runat="server" FunctionName="GetPationts" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TXTPatientname"
                    ErrorMessage="Please enter the Patient id" ValidationGroup="AddImage">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label3" runat="server" Text="Patient ID"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TXTPatientid" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TXTPatientid"
                    ErrorMessage="Please enter the patient id" ValidationGroup="AddImage">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <center>
                    <asp:Button ID="BtnReturnrequest" runat="server" Text="Return Request" OnClick="BtnReturnrequest_Click" />
                </center>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="gvRequests" runat="server" ShowHeader="true" AutoGenerateColumns="false"
                    DataKeyNames="RequestID" OnRowCommand="gvRequests_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="FirstName" HeaderText="First Name"></asp:BoundField>
                        <asp:BoundField DataField="FamilyName" HeaderText="Family Name"></asp:BoundField>
                        <asp:BoundField DataField="PatientId" HeaderText="Patient Id"></asp:BoundField>
                        <asp:BoundField DataField="RequestId" HeaderText="Request Id"></asp:BoundField>
                        <asp:ButtonField ButtonType="Link" Text="Get Request" CommandName="GetRequest">
                            <ItemStyle CssClass="button" />
                        </asp:ButtonField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="label">
                Upload Image
            </td>
            <td>
                <asp:FileUpload ID="DicomFileUpload" CssClass="button" Width="100%" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <center>
                    <asp:Button ID="BtnAddImage" runat="server" ValidationGroup="AddImage" Text="Add Image"
                        OnClick="BtnAddImage_Click" />
                </center>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <center>
                    <asp:Image ID="imgDicom" runat="server" Visible="false" Height="200px" Width="250px" />
                </center>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="AddImage" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
